package com.bwda.dsrs.filecenter.domain.form.strategysituation;

import com.bwda.dsrs.filecenter.domain.po.strategyfilelevel.StrategyFilelevelPo;
import com.bwda.dsrs.filecenter.domain.po.strategyopttype.StrategyOpttypePo;
import com.bwda.dsrs.filecenter.domain.po.strategytarget.StrategyTargetPo;
import com.bwda.dsrs.base.util.DateUtil;
import com.bwda.dsrs.filecenter.domain.po.strategyfilelevel.StrategyFilelevelPo;
import com.bwda.dsrs.filecenter.domain.po.strategyopttype.StrategyOpttypePo;
import com.bwda.dsrs.filecenter.domain.po.strategytarget.StrategyTargetPo;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 场景策略创建Form
 *
 * @author zhangyinmei
 * @date 2019年5月23日
 */
@Data
@ApiModel(description = "场景策略,黑名单")
public class StrategySituationCreateForm {

	@ApiModelProperty(value = "名称")
	@Size(min = 0, max = 64 ,message = "最长不超过64，请重新输入！")
	@NotNull(message = "敏感字段名称不能为空！")
	private String name;

	@ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date createTime;

	@ApiModelProperty(value = "更新时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date updateTime;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

	@ApiModelProperty(value = "场景策略禁止对象列表")
	private List<StrategyTargetPo> strategyTargetPoList;

	@ApiModelProperty(value = "场景策略禁止操作类型列表")
	private List<StrategyOpttypePo> strategyOpttypePoList;

	@ApiModelProperty(value = "场景策略禁止文件等级列表")
	private List<StrategyFilelevelPo> strategyFilelevelPoList;

}